﻿<UserControl x:Class="TskComment.MainWindow"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:TskComment.ViewModel"    
             mc:Ignorable="d" 
             d:DesignHeight="41" Width="300">
    <UserControl.DataContext>
        <local:MainViewModel></local:MainViewModel>
    </UserControl.DataContext>

    <Expander HorizontalAlignment="Left" Margin="0,0,0,-1" VerticalAlignment="Top" ExpandDirection="Left"  Cursor="Hand" IsExpanded="True" Width="300">
        <Grid Height="41" VerticalAlignment="Top">
            <Grid.Background>
                <SolidColorBrush Color="#FFE6E4E4" />
            </Grid.Background>
            <Button Content="{}{" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="16" Command="{Binding MoveToTopOfBlockCmd}" Cursor="Hand" />
            <Button Content="}" HorizontalAlignment="Left" Margin="31,10,0,0" VerticalAlignment="Top" Width="14" Command="{Binding MoveToBottomOfBlockCmd}" Cursor="Hand" />
            <Button Content="执行" HorizontalAlignment="Left" Margin="204,10,0,0" VerticalAlignment="Top" Width="53" Command="{Binding ExecuteCmd}" Cursor="Hand" IsDefault="True"/>
            <ComboBox HorizontalAlignment="Left" Margin="68,10,0,0" VerticalAlignment="Top" Width="120" IsEditable="True" ItemsSource="{Binding CMTCollection}" SelectedItem="{Binding SelectedItem}" Name="cmtCol"/>
        </Grid>
    </Expander>
</UserControl>
